import ajaxFunc from "./axios";

//获取验证码接口
export function getCodeApi(params){
    return ajaxFunc({
        url: '/user/app/code',
        params
    })
}
//用户注册
export function regApi(data){
    return ajaxFunc({
        url:'/user/app/register',
        method:'POST',
        data
    })
}
//登录
export function loginApi(data) {
    return ajaxFunc({
        url: '/user/app/login',
        method: 'POST',
        data
    })
}